package com.example.demo.controller;



import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.apache.catalina.mbeans.BaseCatalinaMBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.example.demo.dto.ResultJson;
import com.example.demo.entity.Cangku;
import com.example.demo.mapper.Cangku_Mapper;
import com.example.demo.utils.DateUtils;
import com.example.demo.utils.MD5Utils;

@RestController
@RequestMapping("Cangku")
public class Cangku_Controller extends BasicController<Cangku> {
	@Autowired
	Cangku_Mapper mapper;

	@RequestMapping("/insert")
	public ResultJson insert(Cangku u){
		if(u.getShuliang()==null);
		       u.setShuliang(0);
		mapper.insert(u);
		return new ResultJson(1);
	}

}
